<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">
	表1：贷款情况明细表（单位：万元）<a id="proposal_downLoadFile" href="${ctx}/file/ajax-filedownload?fileCode=<x:out select="$xmlData/data/proposal/file_code" />" class="link_x" ><span name="proposal/file_name" id="file_name"><x:out select="$xmlData/data/proposal/file_name" /></span></a>
</div>
<table cellpadding="0" class="t_css" width="100%" border="0" cellpadding="0"  id="budgetsMsg">
<tr >
<td align="right">贷款单位名称（公章）：</td>
<td><x:out select="$xmlData/data/budgets/loan_org_name" /></td>
<td align="right">银行账号：</td>
<td><x:out select="$xmlData/data/budgets/bank_account" /></td>
</tr>
<tr >
<td align="right">贷款银行联系人：</td>
<td><x:out select="$xmlData/data/budgets/loan_bank_contacts_psn" /></td>
<td align="right">联系电话：</td>
<td><x:out select="$xmlData/data/budgets/loan_bank_contacts_tel" /> </td>
</tr>
</table>
<table id="tblDetailed" cellpadding="0" class="t_css" width="100%"
	border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
	<thead>
		<tr style="border: 1px solid #B7D1E6">
			<th class="TblHead" align="center" width="4%">序号</th>
			<th class="TblHead" align="center" width="8%">贷款额度</th>
			<th class="TblHead" align="center" width="9.5%">贷款合同号</th>
			<th class="TblHead" align="center" width="12%">贷款日期</th>
			<th class="TblHead" align="center" width="10%">贷款用途</th>
			<th class="TblHead" align="center" width="7.5%">贷款期限</th>
			<th class="TblHead" align="center" width="7.5%">贷款利率(%)</th>
			<th class="TblHead" align="center" width="7.5%">同期银行基准利率(%)</th>
			<th class="TblHead" align="center" width="7.5%">已还贷款本金</th>
			<th class="TblHead" align="center" width="7.5%">应付利息</th>
			<th class="TblHead" align="center" width="7.5%">实际已付利息</th>
			<th class="TblHead" align="center" width="7.5%">按照同期基准利率应付利息</th>
		</tr>
	</thead>
		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/detaileds/detailed" var="detailed">

			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td align="center">${index+1}</td>
				<td style="text-align: center;"><x:out select="$detailed/loan_limit" /></td>

				<td style="text-align: center;"><x:out select="$detailed/loan_ctr_no" /></td>
				<td align="center" >
				    <x:out select="$detailed/loan_date" />
				</td>
				<td style="text-align: center;"><x:out select="$detailed/loan_use" /></td>
				<td style="text-align: center;"><x:out select="$detailed/loan_deadline" /></td>
				<td style="text-align: center;"><x:out select="$detailed/loan_rate" /></td>
				<td style="text-align: center;"><x:out select="$detailed/base_rate" /></td>
				<td style="text-align: center;"><x:out select="$detailed/loan_principal" /></td>
				<td style="text-align: center;"><x:out select="$detailed/payable_interest" /></td>
				<td style="text-align: center;"><x:out select="$detailed/interest_paid" /></td>
				<td style="text-align: center;"><x:out select="$detailed/payable_interest_rate" /></td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
	</tbody>
</table>
<table cellpadding="0" class="t_css" width="100%" border="0" cellpadding="0" >
<tr align="center">
<td width="4%" align="center">合计</td>
<td width="8%"><x:out select="$xmlData/data/budgets/total_loan_limit" /></td>
<td align="center" width="9.5%">/</td>
<td align="center" width="12%">/</td>
<td align="center" width="10%">/</td>
<td align="center" width="7.5%">/</td>
<td align="center" width="7.5%">/</td>
<td align="center" width="7.5%">/</td>
<td width="7.5%"><x:out select="$xmlData/data/budgets/total_loan_principal" /> </td>
<td width="7.5%"><x:out select="$xmlData/data/budgets/total_payable_interest" /></td>
<td width="7.5%"><x:out select="$xmlData/data/budgets/total_interest_paid" /></td>
<td width="7.5%"><x:out select="$xmlData/data/budgets/total_payable_interest_rate" /></td>
</tr>
</table>
<br/>
<div class="t_bar">
	表2：银行贷款贴息情况表（单位：万元，保留2位小数）
</div>
<table cellpadding="0" class="t_css" width="100%" border="0" cellpadding="0" id="budgetsMsg1">
<tr >
<td align="right">单位名称：</td>
<td><x:out select="$xmlData/data/budgets/org_name" /></td>
<td align="right">项目名称：</td>
<td><x:out select="$xmlData/data/budgets/project_name" /> </td>
</tr>
</table>
<div class="t_bar">
	银行贷款情况
</div>
<table id="tblBankLoans" cellpadding="0" class="t_css" width="100%"
	border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
	<thead>
		<tr style="border: 1px solid #B7D1E6">
			<th class="TblHead" align="center" width="4%">序号</th>
			<th class="TblHead" align="center" width="6.25%">贷款银行名称</th>
			<th class="TblHead" align="center" width="6.25%">贷款额度</th>
			<th class="TblHead" align="center" width="6.25%">贷款合同号</th>
			<th class="TblHead" align="center" width="12%">贷款起止日期</th>
			<th class="TblHead" align="center" width="6.25%">贷款用途</th>
			<th class="TblHead" align="center" width="6.25%">贷款利率(%)</th>
			<th class="TblHead" align="center" width="6.25%">同期银行基准利率(%)</th>
			<th class="TblHead" align="center" width="6.25%">已还贷款本金</th>
			<th class="TblHead" align="center" width="6%">应付利息</th>
			<th class="TblHead" align="center" width="6%">实际已支付利息</th>
			<th class="TblHead" align="center" width="6%">按照同期基准利率应付利息</th>
			<th class="TblHead" align="center" width="6%">是否已获贷款</th>
			<th class="TblHead" align="center" width="6%">已获贷款贴息额</th>
			<th class="TblHead" align="center" width="6.25%">核准文号</th>
		</tr>
	</thead>
		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/bankloans/bankloan" var="bankloan">

			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr align="center">
				<td align="center">${index+1}</td>
				<td style="text-align: center;"><x:out select="$bankloan/loan_bank_name" /></td>
				<td style="text-align: center;"><x:out select="$bankloan/loan_limit" /></td>
				<td style="text-align: center;"><x:out select="$bankloan/loan_ctr_no" /></td>
				<td align="center" >
				    <x:out select="$bankloan/loan_start_date" />
					<br/>至<br/>
					<x:out select="$bankloan/loan_end_date" />
				</td>
				<td style="text-align: center;"><x:out select="$bankloan/loan_use" /></td>
				<td style="text-align: center;"><x:out select="$bankloan/loan_rate" /></td>
				<td style="text-align: center;"><x:out select="$bankloan/base_rate" /></td>
				<td style="text-align: center;"><x:out select="$bankloan/loan_principal" /></td>
				<td style="text-align: center;"><x:out select="$bankloan/payable_interest" /></td>
				<td style="text-align: center;"><x:out select="$bankloan/interest_paid" /></td>
				<td style="text-align: center;"><x:out select="$bankloan/payable_interest_rate" /></td>
				<td style="text-align: center;"><x:out select="$bankloan/loan_name" />
				</td>
				<td style="text-align: center;"><x:out select="$bankloan/have_discount_loans" /></td>
				<td style="text-align: center;"><x:out select="$bankloan/approval_num" /></td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
	</tbody>
</table>
<table cellpadding="0" class="t_css" width="100%" border="0" cellpadding="0" >
<tr align="center">
<td width="10.25%" align="center">合计</td>
<td width="6.25%"><x:out select="$xmlData/data/budgets/total_loan_limit1" /> </td>
<td align="center" width="6.25%">/</td>
<td align="center" width="12%">/</td>
<td align="center" width="6.25%">/</td>
<td align="center" width="6.25%">/</td>
<td align="center" width="6.25%">/</td>
<td width="6.25%"><x:out select="$xmlData/data/budgets/total_loan_principal1" /> </td>
<td width="6%"><x:out select="$xmlData/data/budgets/total_payable_interest1" /> </td>
<td width="6%"><x:out select="$xmlData/data/budgets/total_interest_paid1" /></td>
<td width="6%"><x:out select="$xmlData/data/budgets/total_payable_interest_rate1" /> </td>
<td align="center" width="6%">/</td>
<td width="6%"><x:out select="$xmlData/data/budgets/have_discount_loans" /> </td>
<td align="center" width="6.25%">/</td>
</tr>
<tr align="center">
<td colspan="4" align="right">申请贷款贴息资金：</td>
<td colspan="3"><x:out select="$xmlData/data/budgets/apply_loan" /> </td>
<td colspan="4" align="right">以前年度已获贷款贴息资金：</td>
<td colspan="3"><x:out select="$xmlData/data/budgets/apply_loan_already" /> </td>
</tr>
</table>
